assigning third index value to myArray and assigning values to docHours variables