sentences:  He remained with Gardner following the signing of the Treaty of Paris in 1783, bringing an end to the American War of Independence, and served as his first-lieutenant aboard his next command, the 50-gun .Gardner became commodore at Jamaica, flying his broad pennant aboard "Europa" and retaining Cooke as his first-lieutenant until Cooke was injured in a bad fall and had to be invalided home.He had recovered sufficiently by the time of the Spanish Armament in 1790 to be able to take up an appointment from his old patron, Sir Alexander Hood, to be third-lieutenant of his flagship, the 90-gun .