You will need a pointer to a ostream, as a member of your class. It will be initialized in the constructor.
(a reference could work too, if you will not change where it points).
I dont have much experience with templates as yet. I was going to try and have the program work first this way. So if i have time (this assignment is due this wednesday) i would research on templates and figure it out.