How can I add student max for each class?