timing added to exercise 1