Extract child's operation out of main.c

Put child's operation into child_op.c
Extract child's operation from main finction.

Put Child's operation into child_op.c