Add type attribute

Signed-off-by: Wallace Reis <wreis@123people.com>
Merge pull request #18 from wreis/type_attribute

Add type attribute