New quantum nanodevice can simultaneously act as a heat engi