Created a tree data structure