Implemented Timer. Close #4.

Pull request #4 Timer.