stealing some other example code.

Still need to add test.php, so [skip ci]