Moving euler code from old repo