Made a controller for the shopping cart