Put case block in class.