Completed HW #4.