how to assign fee to a class