# Rates That Need More Than a Function

Rates That Need More Than a Function: Strategy: When the Rule Needs a Class of Its Own.

Updated: November 17, 2026

1. [Strategy: When the Rule Needs a Class of Its Own](https://www.ask-codey.com/lessons/dp-strategy) (Journeyman): Pass 1 handed the weekly deal in as one function; a carrier's rate needs its own numbers and answers more than one question, so the function grows into a class per carrier, each holding its numbers and keeping one promise, and the quote screen asks whichever carrier it's handed: the Strategy pattern in its classic form.

Source: https://www.ask-codey.com/courses/design-patterns/topics/dp-rates-that-need-more-than-a-function
