Split c++ code into separate files to keep it better organized.