Lab 2, Exercises 3 & 4