Fix warning. Add primitive progress class and use it in the test program.