Relative System implemented

Done using TDD but very few test cases.