I have a spin system:

As shown in the picture, there are two spins S1 and S2, and a pair of interactions between them. One is a ferromagnetic interaction and the other is anti ferromagnetic interaction. I am trying to calculate the Hamiltonian of this system.
The Hamiltonian of the system is:
$$ H = -J_F S1_z S2_z +J_{AF} S1_z S2_z $$
$S1_z$ is the spin matrix for Z direction for spin 1 and $S2_z$ is the spin matrix for Z direction for spin 2. If we allow two random values for $J_F$ and $J_{AF}$, -0.5 and 0.5 respectively the Hamiltonian of the system is as follows.
$$ H = 0.5 S1_z S2_z + 0.5 S1_z S2_z $$ $$ = S1_z S2_z $$ $$ = \begin{pmatrix} 1 & 0 \\ 0 & -1 \\ \end{pmatrix} \times \begin{pmatrix} 1 & 0 \\ 0 & -1 \\ \end{pmatrix} $$ $$ = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ \end{pmatrix} $$
Am I able to calculate the Hamiltonian correctly?