finish lab-2 using lecture example
modify automic.c doSomething loop ,make it smaller