Completed homework 3: