reading from stdin

it is related to the issue #26