begin to realize the outline of recursive program