refactor app.rb into class and methods. Add method for StudentApp that checks that user input is correct