Separate definitions from declarations for grid structure