Simple code sample using the GPS object. Shows reacting to events on location change and logging the current location to the screen.