combines dog.c and madrid.c