updated glfw example