simplified example.php

adjusted some output in class