analyze and convert working, no tests, no error handling