Base class for question generation

Base class added which generates the question and logs 2 strings
question and answer. Other classes (MCQ, PIN, FILL) will inheret this
base class.