Solution for Lab4