Using Corporal Punishment to Learn