11. Inside the Sum definition, add this code:
HRESULT hr = S_OK;
*pRes = x + y;
over the existing dummy "return S_OK" statement. This code makes no attempt to check input parameters and is very crude. Remember that because COM methods return HRESULT values for error-checking, we must store our sum into a pointer (*pRes). I used pRes to stand for "pointer to result".