Updated Teacher Controller with Add Class