@Addicted I did a tutorial on this A Basic Tutorial on Name, Relationship and Gender Variables
Reaperoa also explains it in his guide.