Added some functions and remembered Euclid