Fixed to create classes with createClass method
Fixed to add attributes with addAttributes method