Start refactoring an writting unit tests.
New module.

Translate function.
Unit tests.