Removed unused parameter from constructor
Let fields be null in equals and hashcode