Let $A$ be a ring. We say an $A$-module $M$ is a generator if for every $A$-module $N$ there is a surjective $A$-homomorphism $M^{(I)} \rightarrow N$ where $M^{(I)}$ denotes the $|I|$ copies of the direct sum of $M$. Why is it true that every free $A$-module $T$ is a generator for $A$-mod?
Suppose $T$ is a free $A$-module then $T$ has a basis, say $\{t_{i}: i \in I\}$ and let $N$ be an arbitrary $A$-module. How do we define a surjective map from this basis to an arbitrary $A$-module $N$?