Create affinity.c