<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def free_symbols(self):
 """Set of all symbols occcuring in S, L, or H"""

        return set.union(
            self.S.free_symbols, self.L.free_symbols, self.H.free_symbols)