how do law firms work