part 6 - created a view class to encapsulate home view