add method for creating messages