Added new sample "Creating threads through a factory"