Use major class name as filename