6. Creating a View Class