Solution for lab1