Added functionality to render the equals method for an immutable object