TOLES Foundation: Analyzing the Structure of a Legal Transaction