Completed homework 3.