Use factory method for examples.