Added Tree structure with case classes.