This case involves an agreement for the sale of appellee’s partnership interest to appellants. The suit was commenced by appellants against appellee seeking injunc-tive relief and declaratory judgment that they not be required to pay the $7,000 allocated in the purchase price to goodwill, due to appellee’s alleged violations of the agreement, particularly the covenant not to compete contained therein. The trial court ordered summary judgment for appellee, and appellants appeal from that order and judgment. We affirm.
Prior to April 18, 1979, the parties had operated, in Mobridge, South Dakota, a certified public accounting (CPA) firm under an oral partnership agreement. On April 28,1979, they signed a “partnership interest sale agreement” whereby appellee terminated his partnership and sold it to appellants who continued in the partnership. On May 10, 1979, appellee opened a CPA practice in the basement of a rural home situated in Corson County, just across the Missouri River from Mobridge, Walworth County, South Dakota. The agreement contained, in addition to other provisions, a covenant not to compete, and also provided for the sale of appellee’s client files and goodwill, with $7,000 of the total purchase price being allocated to goodwill. These portions of the agreement form the basis of this appeal. We will discuss the pertinent facts and language of the agreement as they are relevant to our decision.
We review the granting of summary judgment under the guidelines set out most recently in Sioux Falls Const. Co. v. City of Sioux Falls, 297 N.W.2d 454 (S.D.1980). Appellants argue that the trial court erred in granting appellee’s motion for summary judgment on the grounds that a genuine issue of material fact existed with regards to the intention of the parties concerning the covenant not to compete.
This court’s scope of review is such that we may look at the contract and read it without a presumption in favor of the trial court’s determination. North River Ins. Co. v. Golden Rule Const., 296 N.W.2d 910 (S.D.1980).
“In the absence of fraud, mistake or ambiguity the intention of the parties must be gathered from [the] agreement .... ” Berry v. Benner, 81 S.D. 610, 617, 139 N.W.2d 285, 289 (1966). Neither side alleges any fraud, mistake, or ambiguity, so we will read the contract as it is written.
In determining the intent of the parties, the court must ascertain their mutual intent and give effect to it, if possible. Johnson v. Johnson, 291 N.W.2d 776 (S.D. 1980). In doing so, the court must consider the entire contract. City of Sioux Falls v. Henry Carlson Co., 258 N.W.2d 676 (S.D. 1977). Also, “[c]ourts cannot by implication extend or restrict a contract as meaning something different than that intended by the parties.” In Re Security General Insurance Company, 82 S.D. 47, 52, 140 N.W.2d 676, 679 (1966).
The agreement was signed only after extensive negotiations. Appellee and appellants were represented by counsel, and the agreement as signed was far different from the first draft. The evidence before the trial court was that appellee had kept all options open and protected himself as he had a right to do.
We first look at a portion of the covenant not to compete, which read as follows:
Terminating partner shall refrain from carrying on a similar business including but not limited to the trade or business of *666accountancy, general ledger bookeeping [sic] services, tax planning, tax return preparation or audits or from directly soliciting present clientele of the partnership within Walworth County, South Dakota, from April 18, 1979, to and including April 18, 1981, or so long as the continuing partners or some of them and not as individuals, carry on a like business in Walworth County, South Dakota, whichever is shorter. (Emphasis supplied.)
There was no evidence by affidavit or otherwise that appellee violated any of the foregoing covenant, in particular that he directly solicited former clients, as appellants now contend. During appellate oral argument, counsel for appellants urged that had summary judgment been denied and the matter proceeded to trial, appellants probably could have produced evidence at trial of direct solicitation. Such an argument could undoubtedly be raised in most motions for summary judgment. Neither the affidavit of appellant Kohlman in resistance to the motion nor the deposition testimony of the parties showed any such evidence. We will not set aside the trial court’s action on such speculation and conjecture.
Appellants allege that appellee violated the covenants of the agreement relating to advertisement, which read as follows:
[Nothing herein contained shall prohibit the retiring partner from advertising the dissolution of the partnership and termination of the terminating partner from said partnership from April 18, 1978, [sic] through June 18, 1978, [sic] in a fashion that advises the public that the terminating partner is no longer a member of the partnership and is engaged in business elsewhere including the sending of a joint communique by terminating partner and continuing partners to the present clientele of the partnership advising of terminating partner’s leaving the partnership, his new line of business so long as it is not the same as continuing partners’ line of business, and the continuing partners’ continuance of the partnership business.
Advertising terminating partner’s services in a professional manner other than in newspapers, radio stations or other news media located in Walworth County, South Dakota.
The evidence showed only that appellee placed his name in the Aberdeen area phone book yellow pages under the heading “Accountants — Certified Public.” In the white pages of the Mobridge phone numbers, ap-pellee listed his name as follows:
Cahill Neil D CPA West Of City
Res East Of City
Appellee also placed a “help wanted” ad, advertising for more CPAs and office personnel, in the Aberdeen American News, in addition to ads in area newspapers published outside Walworth County, to announce the termination of his association with the partnership and the opening of his office in Corson County. None of these acts fell within the restricted areas.
We therefore hold that, under the facts as they were before the trial court at the time of appellee’s motion for summary judgment, appellee did not violate the above covenants.
Appellants also allege that appellee destroyed the goodwill which he had sold to appellants, so they should not now be obligated to pay for such goodwill. There is nothing in the record to support this contention. Appellants were aware that Mo-bridge is situated adjacent to the Corson-Walworth County lines. The agreement anticipated that he would continue to reside in Mobridge with the proviso only that he not conduct a CPA practice in the county of his residence. Appellants were fully aware that the relationship between a CPA and his client is far different from that between a ribbon clerk and his customers. They could reasonably have anticipated that appellant’s clients would be inclined to retain the services of the accountant who had been their adviser in previous years. Appellee remained within the confines of the parties’ agreement, refrained from doing that *667which he was restricted from doing, and did nothing more than what the parties had contracted that he be allowed to do. In-junctive relief could not lie to further restrict him. Appellants are obligated under the contract, which they also negotiated and signed, to pay appellee for his goodwill.
Based on the evidence before it, and viewing it in the light most favorable to appellants, the trial court found no genuine issue of material fact to exist, so it granted appellee’s motion for summary judgment. We agree and accordingly affirm.
WOLLMAN, C. J., concurs. FOSHEIM, J., concurs specially. DUNN and HENDERSON, JJ., dissent.