CLASS: fixed union implementation based on hints in later slides