Source code samples from official dev kit and other sources