solving 1_8
including problem 2_1