Sample code to make students understand OpenGL