simplify example implementation