Part 3 - to be checked with a working readline