prob 8 solved