MAD_ex12-solution