A model for distributing teaching funds to faculty