What Is an Index? Examples, How It’s Used, and How to Invest