I don't understand what I'm doing wrong

It does. I found it extremely difficult to start with. Eventually it clicked though.

Incidentally I wrote A Basic Tutorial on Name, Relationship and Gender Variables to try and help with understanding basic startup things.