I did the same thing throughout high school, and never got into trouble.Gaiseric said:At my school if we had our music players/cell phones out and they were seen they could be taken away without warning. If a teacher even saw earbuds it was taken. The simple solution was to not have it out.
I brought my mp3 with me everyday to and from school and I put it away before I got to school and didn't take it out until I was off school grounds. You could have done the same and kept it your pocket or backpack and nothing would have happened.
You took a simple request ("Put your headphones away") and turned it into something much bigger than it should have been. Seriously, there isn't any question about whether or not you were in the wrong. The teacher is the authority figure in the classroom, and you just disobeyed him. Therefore he punished you. QED.