Updated sample to latest build tools. Added more examples to the gradle build file.