Finished work for tutorial 13 case 1