How atomic submarines are made