adding the launchTask method