Add Submarine class and test.