Separated code in two files
Added checkrpn