First attempt to make a threaded application