created a renderer class, and moved the init of shaders to this class