Added models, the business logic to calculate routes and so on