refactored routes
refactored routes into classes