updated arrays.c