added example to read console inputs