Added code samples for Part 2