Code for tutorial 6