Adding method findInArray.