Created a shopping cart function