Let $R$ be a principal ideal domain and $M$ a finitely generated $R$ module. Prove that $M$ is a free $R$-module if and only if $M$ is a projective $R$-module.
I am quite confused and totally not clear about projective modules defined by the universal lift property in commutative diagram.