Exercise 3.22 resolved
Exercise 3.23 resolved