Generalization of R2 to D2 a

First work done, but still work to do.