Implement a menu tree structure