Created a renderer class and a view class