prac2 problem1.5 solved