working part 7 of tutorial