Prolog programs for family members and recursive functions for manipulating data