lab08 done, writing into file