Added union class (untested).