RJE,MW: initial canonical solution