It seems strange that you're supposed to do this sort of problem with classes, where functions would do fine.
Classes are supposed to declare a type.
Can you think of a program where this 'conversation' can be used as a type?
Thanks eraggo, finally I wrote it and now its working :)
@manasij it has been previously written by myself using functions. Now I have to re write it using classes, and this is kinda the first homework i got in OOP