moved class out of talnet.php