Added assert on number of assigned students