erpn simplified for ruby