added logic to display summary information of inventory