Solution for lab3