created message class, wrote tests