Sample code from the Leap SDK book