extract method in Classrooms frame