attempt 2 at MVC structure