Write choiceAbility() function.