This is a code for lab 1 to lab 8