Multithreading Test

Hello! I tried making the code to work with a number of threads. Feel free to comment/modify the code if it's needed. Thanks! Forgive me for the very late request. :+1: