Generalized quotient rings