nontrivial example that uses ebp