Added some simple code files for the Thread API