Made main class strict and fixed the use routes