Changed attr_accessor to attr-read in LineItem class, initialized quantity, imported, product, and price_in_cents in LineItem class, refactored by creating a tax_calculator method with an instance of the TaxCalculator class.