implementing gmp module
implementing gmp module