created example directory and moved RestServer.php into namespace