refactored the example to use blackbox-http