Fire department earns Class 4 rating