import Ember from 'ember';

export default Ember.Service.extend({
    // Empty array to store favorite questions
    questions: [],

    // Push new question to questions array
    add(question) {
        this.get('questions').pushObject(question);
    }

});

@@ -242,16 +242,175 @@
 stion);%0A
+    %7D,%0A%0A    // Check if a question is already included in the questions array%0A    includes(question) %7B%0A        return this.get('questions').includes(question)%0A
     %7D%0A%0A%7D

Create includes function Create includes function that checks if a question is already in the questions array