turned FormatCurrency class method, some work on optimizing algorithm