Adding code samples from lab9