Gulliver's ship is attacked by pirates and he is marooned on a desolate rocky island. Fortunately he is rescued by the flying island of Laputa, a kingdom devoted to the arts of music and mathematics but utterly unable to use these for practical ends. The device described simply as The Engine is possibly the first literary description in history of something resembling a computer. Laputa's method of throwing rocks at rebellious surface cities also seems the first time that aerial bombardment was conceived as a method of warfare. Gulliver is then taken to Balnibarbi to await a Dutch trader who can take him on to Japan and thence to England. While there, he tours the country as the guest of a low-ranking courtier and sees the ruin brought about by blind pursuit of science without practical results in a satire on the Royal Society and its experiments. He travels to a magician's dwelling and discusses history with the ghosts of historical figures, the most obvious restatement of the "ancients versus moderns" theme in the book. He also encounters the struldbrugs, unfortunates who are immortal and very, very old.The trip is otherwise reasonably free of incident and Gulliver returns home, determined to stay there for the rest of his days.