began implementation of MVC and template system