useing two arrays to save dividend data