new solved (exercise 4)