Implementing One after another algorithm body