writes model and route for better functionality for bests