Explain thenApply use case.