update lecture4 2drenderer