added custom message class.