Solution for lab3_2