Implemented defining methods of Tree
Working first version
Changed a method name