can someone confirm that the functional group of cocaine is the ch3n group.

thanks

http://en.wikipedia.org/wiki/Cocaine

I see a tertiary (R3N) amine but I also see a couple of esters.