Changed 'character' to 'char'.
Added part 7 example code.