create class, serializable history message
change contructor, print history message
use class Message and MessageHistory