Foreach? Define the sys msg classes in one val and use at both places?