filling out destroy functions in all of the classes