added example usage of AtomicInteger