Implemented Renderer and the tests for renderer