Added indexOf method