First implementation of the ProgressBar