first working ThreadUnsafe contract