solved problems 1, 2, 3, 4, 6, 9, 10