The paper studies modules over a certain generalized ring. This ring is the noncommutative tensor square of the ring of integers. The modules in question are related to some interesting arithmetic problems. In particular, they are related to the solved Gauss class-number problem for imaginary quadratic fields.