I meant you could create an internal representation with type, rather than having a 3rd class... but I'm ok with Myrons suggestion too.