writing code in TDD manner.