refactor timeexamples