Updated Architecture

Now every time parseInput function will be called in recursive manner. this is the center of all input and output.