Complete 2.3.1 Add Class

Also made better error message if trying to delete a teacher that is
assigned to one or more classes.