how the credit system works