Show how to share data between threads using a class method and a class field BUT now making it thread-safe with a lock.