Drawing a grid