I think that in programming approach you need first write the logic of your application, in separate class, and then think on how the user can interact with your application.