Add attr method