an example with plots added