Add solution to the exercise 7 on libraries