create a view class