first assignemt for https://class.coursera.org/progfun-003/class