Refactored to_roman method