Stub implementation of weighted_sums