Finished D iteration

Added cart and lineitems