adds code for tutorial 5