putting all the tutorial together