Rewriting price_spec to be class-based