Second commit. Added unit tests.