Sample code for opengl seminar