prac2-problem1.2, 1.3solved