Threads examples and Tasks