demo.php updated with dataObject class