Solution for Lab 2