I collaborated with Ben. Here are the files for third homework assignment.