Some adoptation of https://github.com/solana-labs/example-helloworld
If you want to add missing code yourself following instructions from the talk, checkout start:
git checkout start
Master branch contains complete version.
$ cargo build
$ cargo test
$ cargo build-bpf
$ cargo test-bpf