Make DataPoint into a struct which marshals into an array