added BasisGrid class