Code factorization: HomeController class renamed to MainController