Rendering code to render method