I just wanted to clarify the difference between the Algebra and $\sigma$-algebra:
Algebra: If $A_1, A_2 \ldots $ are in $\mathscr A$, then $\bigcup_{i = 1}^{n} A_i \in \mathscr A$
$\sigma$-Algebra: $A_1, A_2 \ldots $ are in $\mathscr A$, then $\bigcup_{i = 1}^{\infty} A_i \in \mathscr A$
Notice the difference is just between $n$ and $\infty$. Let's use this following as illustration:
(1) Let $X$ be a set; let $A, B, C, D \subset X$
(2) Let $\mathscr A_1 = \{\emptyset, A, A^c, X\}$ and $\mathscr A_2 = \{\emptyset, B, B^c, X\}$ be $\sigma$-algebras of $X$
(3) Then $\mathscr A_1 \cup \mathscr A_2 = \{\emptyset, A, A^c, B, B^c, X\}$
(4) Here, $\mathscr A_1 \cup \mathscr A_2$ is algebra because $\emptyset \cup A \cup A^c \cup B \cup B^c \cup X = X$
(5) But $\mathscr A_1 \cup \mathscr A_2$ is not a $\sigma$-algebra because in order to qualify, any pick (or any length) of union of elements of $\mathscr A_1 \cup \mathscr A_2$ has to be in $\mathscr A_1 \cup \mathscr A_2$ also.
(6) Here, since $A \cup B$ is not in $\mathscr A_1 \cup \mathscr A_2$, therefore $\mathscr A_1 \cup \mathscr A_2$ is not $\sigma$-algebra
(7) However, if $A, B \subset X$ only, then $\mathscr A_1 \cup \mathscr A_2$ is $\sigma$-algebra since $A \cup B = X$ and $ X \in \mathscr A_1 \cup \mathscr A_2$.
Please let me know if I am wrong, especially (5) to (7). Thank you very much for your time and effort.