code from SimpleAtomicLong from week 2