Example of reading from stream into vector of objects