that will be great. But why we are using while here then as the process commit is called for each commit i think? I was not having idea of the while so i added here.