moved Grid to models