Added View class and render method.