Creating a View Class