Perpetual motion machine of the second kind