added destructors to ex17 and 18!