finanl for ch7
problem #3