Generate equals & hashCode for problems