Created a view class.