sentence1: He served as the General Counsel for both the Panama Railroad Company and later the Isthmian Canal Commission .
sentence2: He served as the General Counsel of the Isthmian Canal Commission and later the Panama Railroad Company .