examples: add program to calculate the greatest common factor.