Implemented grid class, using parameter header file