prob 7 & 8