remove unused func.class.php and add system.class.php to set global variables  so no we don't need anymore "global $var;" in the classes