added first attempt at 'affirm' function