How Do Submarines Dive and Surface?