started implementing InputStream