modified AddClass for students to be many-to-many relation