prices are added to list which is printed