Please explain what "aren't working properly" means.
Is there somethings wrong with the output that you posted? Can you explain what the output should be?

How do you test the code? What you...