union.h:changed from struct to class

otherwise, able to use as group of pointers, contrary to intent.