challenge 4, populating and initializing task array