Eliminate data redundancy by moving the database, line item, and customer classes from register to receipt, and product out of receipt and into line item.  Tested code, ran fine.