Started and completed homework 4