create attribute factories
Merge pull request #1 from mhor/enhancement_attribute_factory

create attribute factories