Adding functional GridGenerator