Refactored: TensConverter.java