finished remove functionality
finished indexOf method