save class