A beginner's guide to investing in index funds