def height(tree):
    """Return the height of tree."""
    if tree.is_empty():
        return 0
    else:
        return 1+ max(height(tree.left_child()),\
                      height(tree.right_child()))