Lab 2

Modified some things,this is very fragile code .