How do you draw N,N-dimethylheptanamine?

The N,N part is confusing me most.

2 answers

And how would you know something was a cyclic hydrocarbon when given something like CH3CH2COOH? (I know that one isn't a cyclic hydrocarbon but I mean like when you get questions saying "name the organic compound" and they give stuff like CH3CH2COOH and CH3CONH2, how do you know whether it's cyclic?)
The N,N means that EACH methyl group (it's dimethyl) is attached to the N of the amine. We can draw these things on this forum but I'll try my best here.
CH3
|
CH2
|
CH2
|
CH2
|
CH2
|
CH2
|
CH2
|
N-CH3
|
CH3