Transform to class