first example using snippit to render progressbar