How does investing actually work?