System design in C and Shell!!