Where in Massachusetts is Cape Cod located?

cape cod is east Massachusetts. If you look at a map there is a part of Massachusetts that's is sticks out into the Atlantic and is shaped like an arm... that's cape cod.