added student array and used iteration to go through the array
changed comment