separated the app into a module and separated out the model and routes