added begin, process, end section and remove initialize increment variable.