using list instead of tuple to store name and price data