updated existing HCTree.cpp and added getCode() function stub