Let A, M, and R be sheaves of
commutative algebras on a topological space. Given a surjection from R to M there
is associated a cohomology class in H2(R,ZA), the second bicohomology
group of R with coefficients in the center of A. This cohomology class is
zero if and only if the original surjection arises from an extension of R by
A.