finished simple example for EBM