OOP Homework 3 --- Due 12/10 before class Please email your solutions to Anupam Nandan at anupam.nandan@nyu.edu. Be sure to use "OOP HW3 Solution" as the subject line. Assignment 1 (20 Points): Consider the program hw3.1.cc, which uses the latest version of our smart pointer class. Provide the correctly ordered list of all method calls on objects of types Ptr and A that is observed when the program is executed. You must include calls to constructors, destructors, and overloaded operators in your list. However, you do not need to list the values of the parameters to these calls (if there are any). Explain each method call that you list (why does the call happen and how does it relate to the program's source code). Hint: use the TRACE macro to produce the list of all calls. Assignment 2 (10 Points): Consider the programs hw3.2.cc and hw3.3.cc, which are variants of hw3.1.cc. Both of these programs have bugs that can lead to undefined behavior when they are executed (e.g. crashes). For each program, explain what is going wrong.