How does a brokerage account work?