Simplified examples and use glut hooks