Sample code from the Leap SDK guide