simplifying shopping cart structure