Create example of multithreaded app that is not thread-safe