Grid class

complete the missing method