You could add a paramater to function B and pass one thing from A and one thing from C then know who is who in the zoo ...