Add equals and hash code to idea