Final TC.php

functtionality works