Modified to use class objects for...

if stream of stream and string, such that objects cout, cin, and endl
are of type of/ifstream