2. Implemente las funciones agregarProductoTHistorial y liberarTHistorial.