Added the code for a progress bar