Added an init function and create grid function