new dia
redefine the two class of dealing with data