how does buying shares in a company benefit an investor?