HW 2 - task 1. Destructor fixed.