Moved print function from HomeModel to HomeController