make models, views, and controllers into class hierarchies