Code from the tutorial

Source code from the tutorial