Sample codes from the tuorial pythonthehardway