change createAttribute to Add, new method to delete attribute with deleteAttributeAt