Refactored the price class to use attr_reader for instance variables (calling behaviour instead of data) and building a Struct object called 'ProductData' from the passed in array parameter to improve readability and reduce breaking changes in the future.