exercise 1 to 3 in the first exercise