refactor(ProgressBar): updated with a more oop approach