add code to get the number of tasks competed (untested!)