You are definately not alone John, I too am trying to work out SIOC and I have had some programming tutition.
My trouble is that it was sometime ago on some other programming language
and as I've been retired now for going on 5 years I've forgotten a lot of what I used to know.
The old saying "Use it or lose it" certainly applies in my case.:D
cheers
Paul