Class 6 arrays and function