add two methods: readLine and getStream