Fix new-lines in output.
Solutions to exercise 2.
Some improvements to the code.
Update output with actual values.
A few code improvements for corner cases.
Working version of exercise 3.
Fix indentation; add documentation.
Add docstring to main().
Remove unused var.
Update input/* and output/* with the actual values derived from the initial data.