Creating a render class and defining a main activity