Added ResourcePool class