finished euler 39