final changes to euler.cpp