Add class attribute to datapoint