Reed, J.,
delivered the opinion of the court.
S. A. Floyd filed a motion in the circuit court of Carroll county for the court to require M. B. Grace, attorney at law, to pay over the sum of ,two hundred and fifty-one dollars and thirty-one cents, with interest and statutory damages, which Floyd claims Grace collected as his attorney and refused to pay to him. Mr. Grace as attorney for Mr. Floyd in a suit against the Southern Railway Company, in which a judgment was rendered by the circuit court of Carroll county for the sum of three thousand *620and three hundred and fifty dollars. There was an agreement as to fee between the parties, through which Mr. Grace was to receive one-half of all recovered in the suit for his services. An appeal was taken to the supreme court from the judgment of the circuit court. The case was affirmed, and the total amount of the judgment entered was three thousand and eight hundred and fifty-two dollars and sixty-three cents. This included interest on the judgment rendered by the circuit court and five per cent, statutory damages.
Mr. Grace in his testimony states that Mr. Floyd, while the appeal was pending, doubted the success of his case in the supreme court, and desired to compromise with the railway company. He called to see Mr, Grace repeatedly about the matter, and finally stated that he was going to see the general counsel of the railway company and endeavor to compromise his case. Mr. Grace endeavored to persuade him not to compromise his case, and assured Mr. Floyd there was no error in the trial in the lower court, and that he believed the supreme court would .affirm the judgment. Mr. Floyd offered to sell Mr. Grace the judgment for a. reduced amount. Finally there was an agreement between them that, in consideration of Mr. Grace paying the supreme court costs if the case was reversed, he was to have all the interest on the judgment rendered in the circuit court and the statutory damages of five per cent, if the case was affirmed. Mr. Floyd in his testimonj1- denied making this agreement. After the collection of the full amount due by the railway company, three thousand and eight hundred and fifty-two dollars and sixty-three cents, Mr. Grace paid Mr. Floyd the sum of one thousand and six hundred and seventy-five dollars, being one-half of the original judgment in the circuit court, three thousand and three hundred and fifty dollars, and he declined to pay one-half of the additional ■sum consisting of interest and statutory damages, and the present proceeding is to collect the one-half so withheld.
*621Upon filing the motion, a notice thereof was served upon Mr. Grace. He appeared and entered a plea to the-jurisdiction, claiming that he was a citizen of Leflorecounty, and that the circuit court of Carroll county had no jurisdiction in the proceeding. There was a replication filed to this plea, and thereupon the court overruled the plea to the jurisdiction. Then, on permission of the court, Mr. Grace filed a plea of general issue, denying liability as set irp in the motion. Upon the issue thus formed testimony was taken in behalf of Mr. Floyd, who was called .the plaintiff, then for Mr. Grace, and then for Mr. Floyd in rebuttal. When both parties had rested, the plaintiff moved the court to exclude all the testimony in reference to the agreement made between the parties, by which Mr. Grace was to pay the supreme court costs; in the event the case was reversed, and in consideration to receive the interest and the statutory damages if the-case was affirmed, because the agreement was- affirmative-matter not pleaded, and because it was without consideration, and could not have been enforced against Mr..Grace. The defendant asked permission to file with his; plea of general issue a notice setting up the contract referred to. The court sustained the motion to exclude the testimony, and the jury, which it seems had been called, were instructed to find for the plaintiff!, Mr. Floyd. Upon sustaining the motion to exclude the testimony the trial judge said: .“After the introduction of the testimony in the ease he asked to be allowed to amend the general issue by filing a notice, and the court, feeling-that this matter ought to be ended, denied this on the-question raised as to the exclusion of the testimony, as-it is held in the case of Emma May v. Louis Williams, 61 Miss. 125, 48 Am. Rep. 80, that this promise is within the statute of frauds, and the testimony is excluded on that ground.”
The proceeding in this case against Mr. Grace was under section 225 of the Code of 1906, which provides *622that an attorney, receiving money for his client and failing or refusing to pay the same when demanded, may he proceeded against in a summary way by a motion before the circuit court where such attorney usually resides, or where he may be found, or before the court in which the money was collected. By the provisions of this section, the attorney, in addition to being required to pay over the money, with legal interest and damages, may be punished by fine and imprisonment, as for contempt, or his name may be stricken from the roll, or his license be revoked, or his right to practice may be suspended until he shall have paid over the money. He shall be proceeded against in the same manner as sheriffs are for money collected and not paid over.
By section 4672 of the Code of 1906, which provides that sheriffs may be proceded against by motion before the court where they fail to pay over money received, the court, at the request of either party in the case, if matters of fact are at issue between them, shall cause a jury to be impaneled to try the issue. While the record in the present case does not show any request for a jury, yet we find no objection to the trial by jury, and the proceeding as to the jury trial seems to have been approved by both parties. Though the statute directs that the attorney shall be proceeded against in a summary way by motion before the court, it seems in the present case that the motion was treated as if it was a declaration in a formal action at law and the proceedings and pleadings all indicate that the parties so treated it. We will not now discuss the correctness of the proceedings in this case, and will in no wise express any opinion on the matter, for the reason that both parties failed to enter any objection thereto, and apparently approved thereof.
The court erred in refusing to allow Mr. Grace to amend his pleading by filing a notice of the affirmative matter, consisting of the second contract between him and Mr. Floyd. Section 775, Code of 1906, expressly pro*623vides that the court shall have full power to allow all amendments in pleadings at any time before verdict, so as to bring the merits of the controversy between the parties fairly to trial. It was decided in the case of Rodgers v. Kline, 56 Miss. 808, 31 Am. Rep. 389, that where a party introduces evidence material to his cause, but not admissible under his pleadings, and his adversary, making no objection, adduces evidence in rebuttal, but the instructions of the. court exclude the evidence not covered by the pleadings, it is then in time for the party introducing such evidence to ask leave to amend his pleadings. Chief Justice George, delivering the opinion of the court, stated: ‘ ‘The court had the power to allow the amendment at any time before verdict, and the defendants made the application to amend at the earliest moment after the objection had been made which the amendment was intended to obviate. There was no pretext that it would operate as a surprise on the adverse party, as the investigation had proceeded just as if the amendment had been previously made. Amendments should be liberally allowed, in the furtherance of justice, and in this instance we can perceive no good reason for refusing the application of the defendants.”
The second contract between Mr. Grace and Mr. Floyd was not within the statute of frauds. This case is different from the case of May v. Williams, 61 Miss. 125, 48 Am. Rep. 80, cited by the circuit judge in rendering his decision. In that case there was an oral promise to indemnify a surety on another’s bail bond. The husband of Louisa Williams was in jail, and she applied to Mrs. May to go his bond, and promised that certain crops should remain in her possession to indemnify her against •default of the husband. That was a promise made to one person to answer the default of another person. This is a contract made between two parties. Mir. Grace did not agree with a third person to pay any indebtedness owing by Mr. Floyd to that person. There is no promise *624made in this case, say, to the clerk of the supreme court, or to the clerk of the circuit court of Carroll county, to answer for any debt or default on the part of Mr. Floyd. There is only an agreement between the parties based upon a consideration. In the case of Ware v. Allen, 64 Miss. 545, 1 South. 738, 60 Am. Rep. 67, it is decided that a promise made to a debtor to pay a debt which he owes to a third person is not a promise to answer for the debt of another, and therefore not within the statute of frauds. Judge Arnold, in delivering the opinion of the court in that case, said: “A promise made to a debtor to pay a debt which he owes to a third person is not a promise to answer for the debt of another within the meaning of the statute of frauds. The statute applies only to promises made to the person to whom another is answerable”— citing Browne on Frauds, section 156; Eastwood v. Kenyon, 11 Ad. & E. 438; 3 Parsons on Cont. 24, 26; Crim v. Fitch, 53 Ind. 214; Lee v. Newman, 55 Miss. 365.
Counsel for appellee say the contract under consideration is against public policy; that it evidences dealings between attorney and client which should not be approved by courts', and such as should render the contract void and unenforceable. The right of an attorney to make an agreement with a client for a contingent fee, based upon success in the litigation, even to quite a large proportion of the amount involved, is, well recognized in this state. In view of the law and the practice touching this matter, the propriety of such employment can hardly now be called in question by us. In this case it appears that the contingent fee was for one-half of the amount to be recovered. This is not unusual. There was a jury trial, and a recovery of a judgment. Under the agreement the attorney and the client had each an equal interest in the judgment. Such was the situation when the second contract was made. It is suggested that this last contract was- one for an additional fee. We do not so consider-it. It was made between two persons, who both *625owned equal shares in a judgment. It is true that the relation of attorney and client existed between the parties. But this contract was a business transaction, separate from and independent of the agreement for a contingent fee and share in the amount to be recovered in the suit. While it was made between attorney and client, it could have been between the client and some other party. An attorney must do nothing to encourage litigation. It can hardly be said that this contract was to encourage litigation. The client was already in the midst of litigation, successfully conducted by the attorney. All of an attorney’s relations with his client should be marked by fidelity and fair dealing. He should always be true to the best interests of his client, and he should not at any time take any unfair advantage in any contract or transaction, whether it be about a fee or other contract or matter between them. From appellant’s testimony it appears that the client in his ease was not taken advantage of, but was treated fairly; for he was willing to sell his share of the judgment for a reduced amount, rather than continue the chances of the case. If the contract in this instance, as claimed by appellant, prevented the client from making a settlement of his case whereby he would have received less than the amount then due him, as shown by the judgment in his favor, and saved him from a possible loss by the agreement to pay the costs in the supreme court in the event of an adverse decision, we cannot see how in the maldng of it he was unfairly dealt with. We are now only disposing of the case before us, and in doing this we decide that the second contract between Mr. Grace and Mr. Floyd was not void under the law.
As the issue in this proceeding was being presented to a jury for their decision, we believe that the amendment to the pleading should have been allowed, and that the case should have been duly submitted to the jury for their decision.
Reversed and remanded.