write the class DataPoint