Exploring the use of a tree data structure