added getters and setters to message class