Complete code with GrossP.