Multifunctional tank