Localization of a module

Let R be a commutative ring, S be a multiplicative closed set in R, and M be an R-module. The localization of the module M by S, denoted S1M, is an S1M-module that is constructed exactly as the localization of R, except that the numerators of the fractions belong to M. That is, as a set, it consists of equivalence classes, denoted ms of pairs (m,s), where mM and sS and two pairs (m,s) and (n,t) are equivalent if there is an element u in S such that

u(tmsn)=0