adding explicit type names to classes