Created class Any to add hashCode and equals methods, removed Either from public scope