defining the functions for Euler5