Update mainclass.php