code for lab1