#5: add method to insert node to tree (class_definitions.py)