Criminology is the scientific study of criminal behavior and the criminal justice system. It seeks to understand the causes of crime on both individual and societal levels, as well as the types and incidence of crime. Criminology is closely related to criminal justice, which studies the agencies that enforce laws and punish offenders. There are two main models of crime - the consensus model views crime as breaking agreed-upon social norms, while the conflict model sees crime definitions as imposed by powerful groups to maintain their power. Not all abnormal behavior is criminal, and not all crime is considered deviant. The criminal justice system aims to control crime, prevent crime, and provide justice through law enforcement agencies, courts, and corrections systems.