my solution for lab1