Solving the Coagulation Equation by the Moments Method