refactoring of FormatNumber to separate class + interface and file