Finished private: and added struct node for tree