What is the relationship between “class” and “cost” of trademark registration?

Does the cost change with the class you choose? Does the number of classes affect the fees? This article explains the relationship between “class” and “fees” for trademark registration.