Have a new driver behind the wheel? Take comfort (if you can) in the results of a study recently released by WalletHub, which ranked Massachusetts as the third best state in the country for teenage drivers.

The personal finance website analyzed the teen-driving environment in each of the 50 states across 23 metrics covering everything from driving schools per capita and the quality of roads to occupant protection laws and teen driver fatalities. The Bay State had the third fewest teen DUIs and the fourth fewest teen fatalities among the teenage population. Overall, Massachusetts came in just after Maryland and New York as the best state for teen drivers.