migrate arithmeval sample