Added example using readline