In short, both chains created a more satisfying shopping experience. Sounds simple, right? But think about the steps involved: You have to predict what products will be in demand, make sure they're available at the right time and train employees to be helpful but not pushy. Getting all those gears working together smoothly isn't easy, but it's a winning strategy. 2. Creative cost-cutting pays off: Sometimes there's no way around it. With rising commodity prices, you have to pass on the increases to stay profitable. But will already cash-strapped customers keep buying? Take a lesson from companies such as Kraft ( KFT). The food-products giant has shed unprofitable brands and reinvented items to make them both healthier and cheaper to produce. A case in point? The company's very successful line of 100-calorie packs of crackers and cookies, which sell well because they're health-conscious, but also cost less to produce because they're so much lighter than traditional snacks. Other food companies have gotten creative with packaging, too. As the cost of milk and other dairy prices rose, ice-cream manufacturers began selling 1.5-quart containers, rather than the traditional half-gallon size, at the same price. Wal-Mart ( WMT) and Costco ( COST) began selling milk in square-shaped containers that save on transport costs because they can be packed more efficiently on trucks. Ideally, such cost-cutting is a win-win situation. Your products become more healthy or environmentally friendly, while your costs go down. 3. Expand your mission: The humble neighborhood drugstore might not seem like a hotbed of economic creativity. But CVS ( CVS) and Walgreens ( WAG) both maintained steady sales this year (no easy feat in itself), while experimenting successfully with new sources of revenue. Both chains now offer retail clinics: in-store offices where nurses or physicians' assistants diagnose and treat common, non-emergency illnesses. If you need a prescription filled, the pharmacy counter is a few steps away.