created Grid class with particular implementation