Added functions: putChar, generateCharacter