Added support for naming using class attributes.
Added support for naming using class attributes.