Initializing class, creating grid.