final mad9013 ex1

This is my final version.