I suggest you understand the qualities of being a good class president first, and then you seek your own way. But, you can discipline them effectively by explaining to them your duty and why they should follow you. Remember, being strict is only an option. It's not the first thing about leadership. Also, respect them because being naughty always has a reason.
I hope you learned even a little bit in my point of view in Leadership...