Using 2D arrays storing names in array