NSTASK example Sync and ASync