added new task to set array element by particular index