Homework 2

An attempt on trying to do Homework 2