array and slice practice