implement the function call chain way for executing the program #44

for #44