Add EW code from Ruby Warrior