finished getTotalItems and getTotalValue