Fixed bug and allowed teacher to add classes