Realize input operation to objects from stream, add input example