Implement read

fix an issue #19