define routes and model