The class group of D + M