Modified the class and simple_example.php