Resource Allocation - Complete Example