convert to new attribute syntax
Merge pull request #18 from afeld/attr-syntax

convert to new attribute syntax