added progress bar
added example