Modified the HashMap class to store an instance of its hashcode-generator class instead of calling static methods.