wrote MDM hwk2