added integration with class.php