Added some code to create threads

Added some code to create threads

(No threads started yet)