Adding functionality in cartmodel to add items to cart