Working on a range/array homework