Implementation of the Billing Problem