this is the first step of exercise 6