created grid class and todo methods