created example with thread pools
set up to work on synchronization