solution for lab 1