Add solution for exercise 1-23