Refresh the code and add custom hashCode and equal methods.