Implement time model, and test case file. All tests passing.