Added in function to create array of years