upgraded example to 2.1.0 compatability.