Add another solution for the total function of Grains in the comments