story #2: pulled common method into PriceCode; fixed some failing tests