A class to store the coordinates and also a class to read and write to file.