worked on prob 7