This document discusses designing classes in object-oriented programming. It begins by introducing the CoffeeReceipt class to represent coffee sales receipts, with fields for the coffee type, price per pound, and weight. It defines the CoffeeReceipt constructor and shows examples. Next, it discusses defining a cost method to calculate the total cost from those fields. The cost method template accesses the fields via the this keyword and multiplies price per pound by weight. Finally, it shows testing the cost method. In summary, the document provides an example of designing a class to model a problem domain and adding a method to perform relevant calculations on the class fields.