added problem 3 part 6