attr_writer added on price and class dependency removed