Implemented Phase II of tutorial