Added exception catching, elapsed time, problem 3