Implement changeAttributeBy as two separate methods