changed prob 3 answer