How does Nmr Work?

A NMR machine works as a magnet to have all little parts of an atom line up with the big parts of the atom when placed in the machine. Then, the scientist can then determine molecular structure.