prac2 problem1.4 solved