Edited Tree Base Class to seperate methods