adding grid and calcuations into project