Updating code samples (part 3)