Add HW6 MMA solution