queues and pipes examples