Prisons are used as a method of punishment for criminals.