ML2: new exercise 7