Adds while read example showing how to parse correctly with read