Exercise 3.26: Implemented maximum.
Exercise 3.27: Implemented the depth function with tests.
Exercise 3.28: Implemented map.