This is my programs for the homework assigned for CIS 194 at UPenn on the page http://www.seas.upenn.edu/~cis194/lectures.html.