MVC architecture and model implementation