@Override
    public boolean equals(Object other){
        if(other == null || other.getClass() != getClass())
            return false;
        if(other == this)
            return true;
        Movie otherMovie = (Movie)other;
        if(name.equals(otherMovie.name) && director.equals(otherMovie.director) && rating == otherMovie.rating)
            return true;

        return false;
    }