Add sample code from glut tutorial