Completed required exercises for Homework 1