Problem 5 from section 6-2 hw