Working version of the utlity function this is with named classes. Need to add loo to loop typough all classes to get sets of utility functions