a submarine is a kind of ship