Added chain.c