Completed deconstructor by referencing homework 3.