Decided to delete function __destruct and put base functions in the function __construct()
Decided to put back destruct. I have no idea what I'm doing