(CNN) Attempting to beat back the rise of vaping among teens, the city of Somerville, Massachusetts, voted this month to limit e-cigarettes and menthol cigarettes to the shelves of tobacco stores open only to customers 21 and older.

This comes on the heels of Massachusetts raising the legal age for tobacco purchases from 18 to 21, which goes into effect on December 31.

Somerville's move, the first of its kind in the state and possibly the nation, goes further by taking menthol and e-cigarettes out of shops, like convenience stores, that teens can enter. The new restriction in this city outside of Boston will go into effect on April 1, 2019.

"These products are being shamelessly marketed to teens, who have become their biggest users without fully understanding the health risks, which is why we've seen the Surgeon General calling for significant interventions to end this building public health crisis," Somerville Mayor Joseph Curtatone said in a written statement

"We are rising to that challenge by becoming an early adopter of these regulations," Curtatone continued, "and taking the necessary steps to stop the cycle of nicotine addiction among our young."