CPP practice code. subtree of CS