Created a class for rendering