readline example update