gcd exercise