Added indexOf() method