the function getProducts is done

it works well