wrote mdm cantor homework2