the problem statement is as follows: Given G an abelian group, I have to show that there exist a simplicial complex, K (finite), such that the $H_{0}(K,\mathbb{Z})=\mathbb{Z}$ and $H_{1}(K,\mathbb{Z})=G$.
The first thing that came to my mind was use the theorem of classification for compact surfaces that let me the sphere, the connected sum of the tori, or the connected sum of the real projective plane the only possibilities. All of them connected, so its $0$-homology is $\mathbb{Z}$ and the $1$-homology of the sphere, the sum of the tori and the sum of the projective planes $0,\mathbb{Z}^{m},\mathbb{Z}^{n}\oplus\mathbb{Z}_{2}$, respectively.
and use the fundamental theorem of finitely generated abelian groups, then $$G=\mathbb{Z}^{m}\oplus(\mathbb{Z}_{a_{i}}\oplus\cdots\oplus\mathbb{Z}_{a_{k}})$$ the problem is the torsion. If G is free, then G is torsion-free and there is no problem but I don't know if this can be proved.
another way I thought was consider the boundery of a 2-simplex this is connected so the condition for the $0$-homology is satisfied. in the other hand there is no 2-simplex so $B_{1}=0$, and $H_{1}(\partial\Delta^{2})=Ker(\partial_{1})$ and considert an arbitrary $1$-chain $$c=a_{1}\sigma+a_{2}\delta+a_{3}\kappa$$ where $a_{i}\in G$ that will give me the $1$-homology required, but then I thought that there was something wrong with this.
Do you have any suggestion that can help me?