Refactors the roman numerals code