Problem
1. Give a formal definition of the term extended stack.
2. In mathematics the Cartesian product of sets T1, T2,... ,Tn is defined as the set of all n-tuples (t1, t2,... ,tn), where ti is a member of Ti for all i, 1 ≤ i ≤ n. Use the Cartesian product to give a precise definition of a class.