Tutorial code for leap motion