Create protocol_function.c and protocol_main.c