Move CTNode class to sourcef file