Make use of datatype classes to retain custom classes information