added exercise 1_7 and 1_8