euler 2 initial impl