script correctly output 10 products