Debugged and updated tutorial