Let $m$ be an ideal of a ring $A$. Set $B:=A/m$. Then, $m$ and $m/m^2$ have natural structures of $A$ and $B$ respectively.
For any $B$-module T which also has a natural structure of an $A$-module, I want to prove that $$Hom_B(m/m^2, T)\cong Hom_A(m,T)$$ as abelian groups.
Consider a homomorphism of albelian goups $H$: $Hom_B(m/m^2, T)\rightarrow Hom_A(m,T)$ by $H(f)=f\circ \pi$
where $\pi:$ $A\rightarrow A/m^2$ is the natural projection.
I can prove the injectivity part but get stuck on the surjectivity part. So, my questions are : Am I on the right track ? and how to prove it ?
Anyone can give me some hints or a reference for that ?
Thank you in advance.