adding initializer for the messages list