Minor correction. Wrong array index mentioned in code.