Wrapper for particle example, with some more features