intended to inflict punishment
"The school's punitive measures aimed to deter bad behavior among students."