Unable to compile thread example on the document.