Refactoring!
Created an Expression class, instead of a list,
 as well as a EndMarker class - which will be used in the classify_identity function.