class and messages