Definition (direct sum of modules)
Let $M_1, \ldots, M_k$ be $R$-modules.
Their direct sum $M_1\oplus \ldots \oplus M_k$ is the set $M_1 \times \ldots \times M_k$ with operations $$ \begin{align*} (m_1, \ldots, m_k) + (m_1', \ldots, m_k') ={}& (m_1+m_1', \ldots, m_k + m_k') \\ r\cdot (m_1, \ldots, m_k) ={}& (rm_1, \ldots, rm_k) \end{align*} $$ forming an $R$-module.