removed unused imports
Jonas's idea about hashCode