homework 2 - corrected errors
hw3