Should physical education be an elective in middle school?

It's important for children to get exercise, and usually they get it through physical education. However, there are other alternatives like dance class or team sports. It's important for children to have a break in the school day though.