added lab2 from example