Updated example.php to reflect changes to class