An example on how to use NSProgress functionality