Completed homework 1