assignments from https://class.coursera.org/progfun-003/class/