The smart way New Zealand saved a species