programs for math 818 hw 3