Added formatNumber to refresh method
Updated example to include refresh