adding the prices to a list and printing