Creating grid system