# Non isomorphic groups who product with Z is isomorphic

Are there groups $G$ and $H$ such that $G$ and $H$ are not isomorphic but $G \times \mathbb Z$ and $H \times \mathbb Z$ are?

-
Note that if one of them is abelian and finitely generated then by structure theorem $G$ and $H$ are isomorphic.