example 5-1: simple use of io:read