renamed product to cartesian_product
shorter code for cartesian_product