implementation of shopping cart backend