put calculations on grid in class