Added Mode.c and Mode.h