added some sample code with a union