Part 6: Creating a View Class

structure the view as class