Refactored Euler with @phillycc @ Kreider1997