finished prob 7