implements a maximum number of students