Fixed period shit, added appointment implementation + tests.