finished distance exercise (12) from day 3.
Only needs user interfaces to be complete(take arguments from console
instead)