Parent and parent_id method moved to tree.rb