Question 4 added time recording

question 4 added time recording and question 2 changed array index