attempted readline example