Simple example with while read line