Prob9 create product array