On a pulsating jet from the end of a tube, with application to the propulsion of certain aquatic animals