Added nested wrapper class so that we can start tracking when objects ar...

...e dispensed from and returned to the pool.