add the class information in the room's head