Implemented IndexOf and Contains methods