Modified Program to Use Time Class

-all times outputted are formatted correctly