Create Thread.php

First deviation from the original code