Put CharNode class into a separate file.