solution for lab1