problem 3 soultion a