updated example.m to use add_perseveration