created program skeleton according to http://learnpythonthehardway.org/book/ex46.html