Update BaseClass.php