Added nested wrapper class so that we can start tracking when objects are dispensed from and returned to the pool.