hw4 prob1-5 unfinished