Model: Added first parts of the way calculation + UnitTests.