added view_controller.rb to hold the view-facing methods