created basic version of MVC inheriting classes