created function to get completed tasks lists.