Create New Thread Function

Started to create the function that allow users to create threads.