Initial working demo
Refactor newGrid function