Sometimes sending a criminal to prison causes a better society