How to create a weight-based fee model?