How many parts did the Gregorian reform have