implemented shopping cart calculation