Implemented total_time for exercises