changed the file to cpp format