cart funct 1.6, adding purchase logic to protocol
fixed merge conflict