started working on a totient function