Update

1) Add more test cases. 2) Implement Logger.