Matrix space/Diagonal matrices/Direct sum/Exercise

Show that the space of -matrices over a field is the direct sum of the space of the diagonal matrices, the space of the upper triangular matrices with zero diagonal, and the space of the lower triangular matrices with zero diagonal.