Implement convert method.
Fix bugs
Add test cases