this was assisted by a machine on the bedside table it had an artificial lung that breathed in and out for him , passing the air to his inactive body through a tube that ran to cover his nose and mouth .