#17: add constants DIM and GEM