how crime works