Successfully added method to print the numbers in the format required.
Some caveats.