Feature/tasx 5 task domain class

I replaced calls to compareTo with overloaded operators as suggested.

My rationale for using `getFrom` and `getTo` was to limit direct accesses to fields whose implementation might change. I replaced them with more concise direct accesses as suggested.