created java multithreaded observer-pattern stock program with a singleton thread manager