class Dem finished
test createFlatGrid refac