MCS-284 Appendix B Homework