Implementing the Converter class