extract code, text as list

only question, answer object need these methods.
this resolves #21 
This should be `super(Answer, self).__init__()`. Same for the other classes.