Extending the tutorial.

Added generics, calculations, state machine, UTF-8 characters, comments