A certificate or evidence of a debt with a sum fixed as a penalty, which contains a written agreement binding the parties to pay the debt, conditioned, that the payment of the penalty may be avoided by the performance of certain acts by one or more of the parties