Added comment for hash code and removed unused imports