how does a law firm work