Let $f: E_1 \rightarrow E_2$, and let $\mathcal{A}$ be an algebra ( $\sigma$-algebra) of subsets of $E_2$. Show that
$$
f^{-1}(\mathcal{A})=\left\{A \subset E_1: A=f^{-1}(B), B \in \mathcal{A}\right\}
$$
is an algebra ( $\sigma$-algebra) of subsets of $E_1$.