Program assigment for Coursera course "An Introduction to Interactive Programming in Python" (Rice University)