Create capsule.c

initial commit