adds mark_done method to Task class