Refactor roman numeral program in Chapter 10