What is the correct Lewis structure of diazomethane? I tried to google and watch YouTube videos on how to write Lewis structures properly, but I can't seem to understand how to do this correctly.

My teacher, when class was in session, gave me a set of instructions to complete Lewis structures:


Sum Valence electrons
Add electrons to outer atoms, while obeying octet or duet rule.
Then add electrons to center atom, obey octet rule, unless they're third row element or below.
Do formal charges for each atom valance charge - (unbonded electrons + 1/2(bounded electrons))
Once formal charges have been determined, minimize formal charges by using unbound electrons to make double or triple bonds
Redo formal charges to check if formal charges are as low as possible, for central atom.


So I attempted to do this for the diazomethane, but my answer (circled in green) does not match the book's answer (in red).



What did I do wrong?

After further considerations, I realized that my structures didn't obey the octet rule. So then would this revised structure be also correct?
The image above depicts three mesomeric structures of diazomethane ($\ce{CH2N2}$). When you count the valence electrons for every atom, you will find that only the left and middle structure satisfy the octet / duet (for hydrogen) rule, i.e. that every $\ce{C}$ and $\ce{N}$ atom has 8 valence electrons, and every $\ce{H}$ has two valence electrons. The structure on the right side does not obey the octet / duet rule because the positively-charged nitrogen only has an electron sextet. The same is true for the two structures you have drawn with an $\ce{N-N}$ single bond. In both cases, at least one nitrogen has only 6 valence electrons.