see HW #4 attached