added get attrbiutes method.