tut updated to reflect io function changes.