A commission is earned when the real estate broker fulfills the terms of a written personal services contract.