saving student results but keeps duplicating class and creating empty class lists