Simplify example code