implemented HCNode.cpp