Add tutorial code and make first test pass