Rearranging the code. Getting product's information