Added example on how to handle unions.