added calculate the amount of items by price