Trying to make Pencil class work in Tree.cpp