add method to mark task as done