completed DataClass function definitions