Moved euler code completely to euler method