Debugged, working tutorial flow