Last part of exercise 7