mad9013-midterm