Fixed Question #7

used a lot of time on this one, finally figured it out.