Updated tutorial with newest code.