Reimplement arithmetic action with my own compiler