@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        QuestionImpl question1 = (QuestionImpl) o;

        if (correctAnswerPoints != question1.correctAnswerPoints) return false;
        if (correctAnswer != question1.correctAnswer) return false;
        if (possibleAnswers != null ? !possibleAnswers.equals(question1.possibleAnswers) : question1.possibleAnswers != null)
            return false;
        if (question != null ? !question.equals(question1.question) : question1.question != null) return false;

        return true;
    }