fix array homework