added MultiGrid class