In a homeowner's suit against defendant seeking reimbursement of the $57,500 he paid defendant for landscaping work under a statute allowing a party to recover "all compensation paid to an unlicensed contractor," trial court's judgment in favor of the plaintiff is affirmed where: 1) plaintiff's prior knowledge of defendant's unlicensed status does not bar his section 7031(b) reimbursement claim; 2) plaintiff is entitled to recover the total amount paid even though defendant was licensed during a portion of the work; and 3) plaintiff is entitled to recover payments for materials retained by him.