created a new file and package for the model and moved a little bit of
stuff from MainActivity to Model.