use object oriented tocreat a CartItems.js