updated ann example for latest libann