Updated code
Formatted table output