add constructor to Grid class