new example with State