added exercise 1 to 4