update example to use glfw