Create union.rb

full implement of unions