Part 6: creating a view class