Homework5:

Problem 1:

 

Extra credit: