Add isSame<Period> mathods
Add assertions
Refactoring