grid object created and constructor written