adds 3 arrays
3 array implementation done.