created a view class for clarity