finished controller class, made some private functions and checked the
answers.