Made changes to Node class with help from stackoverflow; deleted Tree class.