An annuity is best described as a contract that: