First commit of GridArray (not tested).