Day 9 - Exercise 2.2 - Implementation as tree