Creating a method for grid ecpectation